[BZ-1062547] avoid a NPE when updating a drl without package declaration
(cherry picked from commit 39e13f6b0c9bafc4601362d529093348a117fc78)