check the FileActions has a current file set

@PVince81 @DeepDiver1975 @karlitschek @craigpg should go into 7.0.1 as it fixes opening text files when clicking on a search result.