* lisp/progmodes/compile.el (compilation-next-error): Check there's