TRQ-2631. pbs_server crash resubmit

Fixed a memory corruption segfault with the
University of Michigan. They sent a valgrind
trace and this fixes two of the stack traces.