Fixed an issue that would prevent keys being recognised if existing_error was undefined/null