TRQ-2631 - pbs_server crash

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