Fixes a NullPoinerException when the Service class is placed in the root package (i.e. no declared package).