Add extra NPE guards in ShellUtils, to fix issues with pax-exam tests