Order listener registration

To avoid a null pointer exception
Ignore editor events with null project or filePath