HPCC-11243 Correctly catch invalid (blank) module names

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