Improves lineinfile's error checking

Line in file would raise a TypeError exception if
the 'line' key was in params, but its value was None.