Fixed null pointer bug in case createAstFromFile is called with false as an argument

Be aware @ashimshahi ;-)