silence warning about missing return and add assert to isError

tiny followup for https://github.com/D-Programming-Language/dmd/pull/3074