Fixed registering of specific URL protocol handler package.
Fixed NullPointerException from the previous commit.
Merge pull request #1 from ITman1/master

Fixed registering of specific URL protocol handler package.