Fix the poor handling of task_save()'s return codes. Any non-PBSE_NONE error code means that it failed, but we were only handling the failure if it was -1. This is now rectified.