Fix null pointer access for non-existent locally registered packages and output a warning.