Update parseKarlovasi.java

Modified header check condition to handle broken headers.