Avoid TypeError if no file was checkt in jscs