Fix stupid old issue where invalid item keys caused a crash.