Study reveals why having a bad job is better than unemployment