SHDP-399 Fix potential NPE when running Pig tests