Fixed null crash when bad package name is supplied