Prevent possible NPE when reading package annotations