check return from nice() correctly (bnc#807936)