Fixed regression introduced in d8dfb22: completion in project-less files casues a NullPointerException.