Fixed the latest version handler to handle invalid original id inputs.