Fix scratch-read-major-mode to remove invalid mode entry