Fix copyright check on empty files

For empty files the copyright check would keep reading but because
it was at EOF it would keep getting an empty string, for which
'not line.strip()' would always evaluate to True. This change
causes it to exit the loop when it hits EOF.

Change-Id: I0fe5d95fe1d4f1d9dcaf1ff4e1351fa40b96bd72
diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
index 866a132..d8d7ad4 100755
--- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
+++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
@@ -315,7 +315,7 @@
         with open(path) as file:
             # Skip shebang and blank lines
             line = file.readline()
-            while line.startswith(('#!', '/*')) or not line.strip():
+            while line and (line.startswith(('#!', '/*')) or not line.strip()):
                 line = file.readline()
 
             first_line = COPYRIGHT_FIRST_LINE.match(line)