Fix NullPointerException when retrieving resource paths

Fixing NPE when retrieving resource paths in the case where your project doesn't contain a scanned path (e.g. /templates/shared, /WEB-INF/templates/shared, or some namespace you've created). Furthermore, it seems that the resolver scans both /WEB-INF/templates/{namespace} and /templates/{namespace}. If BOTH directories don't exist for your namespace, an NPE is thrown. Maybe a servlet api difference (considering I doubt you simply overlooked this)?