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 SEGMENTATION FAULT. This fixes the issue.