Fix exception when opening empty folder and file open

I hit this exception when testing extensions:

1. Open a file in editor
2. Open an empty folder in file tree

ProjectManager dereferences null 'data' object trying to determine if the open file is in the folder being opened for the purpose of highlighting it.