Prevent Analyzer from throwing a NPE when analyzing a file without
extension.

The analyzer threw a NullPointerException when a file without a file
extension was modified in a PMD enabled project. This fixes #3.