core: debug check for accidentally registering medea APIs twice.