Handling empty parse argument

fs.readFileSync(filename, 'utf8') may be null in some case. Here is to avoid this