Fixes behavior of no action when configured with directory_mode = project and sublime has not a project open

Hi, thanks for the project.

I was having this problem when opening ST for a single file editing. When hitting the shortcut no action was performed.

Changed this piece of the code to make it work for me.