Fixed freezing when source file for inject generator does not exist

* Added exception throwing when file does not exist

(closes OpenFLUID/openfluid#236)