openpkg: fix fuzzed file crash.