TRQ-2967: fix for a pbs_server crash.
TRQ-2970 - refactor patch for TRQ-2787
Fix crash on start up when reading empty array file.