Fix SEGFAULT when watch_file_changes is false

I haven't seen any bug with this, but at least on my machine
I can't open any project file when watch_file_changes is false,
because i get a SEGFAULT. This fixes the issue.
Merge pull request #395 from marius-avram/watch-file-segfault

Fix SEGFAULT when watch_file_changes is false