LDAP-233: LdifParser goes into infinite loop when passed a non-LDIF file
Fixed according to patch suggestion.