NullPointerException in UpdateChecker

Proper fix for the NullPointerException issue. The loop should not return if the first line is not the line containing the version name.