Fix for the NaN error

Wheh lines_run and total_lines are zero it gives NaN error. 

This happens for an empty file in config/initializers