Fixed over-aggressive error reporting when trying alternatives for function resolution