Handle NullPointerExceptions related to package persistence