Fix NullPointerException when using the hooks and :skipjar true.