HWMF: fix(bug 61338)

fix by POI Developers (bug 61338) - HWMF: Avoid infinite loop with corrupt file.