fix NPE by ignoring lines of code that have not yet been committed (they are irrelevant)