Update BackpackDefinition.java

Fix nullPointerException on isValidItem()