Actively throw NPEs when un/registering null objects