Added null check for project
If the ignoredProjects property is empty, I return the empty list

Avoids a lot of NullPointer checks along the way.
Registering the document after the ignore check
Merge pull request #74 from caiusb/bug-fix

Bug fix for 0.6