Added null check for the pkg before trying to get the rule.

Prevent NullPointerException within KieContainerImpl.updateToVersion(ReleaseId).