Catch the unresolvable dependencies exception (see #6343)