Added check requestPath != null 

If you try to load the AEM http://localhost:4502/projects.html (author instance) with bundle enabled you will get a nullPointerException because the resourcepath of projects.html is null.
Merge pull request #6 from fabio10/master

Added check requestPath != null