jflte: Fix "NameError: name 'device' is not defined" when patching Imperium