Prevent NPEs when attempting to open locked chests