Checks for null

In the case where an empty file or file
only comments was passed, this was
causing an error.