Fix: Null pointer when removing an extension