HPCC-12334 Fix core if -main is used with no filename

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>