Fix bug where the compiler would fail instead of throwing an informative error when trying to compile a user meta-predicate defined in plain Prolog with an ambiguous meta-predicate template