[Syntax] Remove a strict valid source location assertion for TypeLoc.
The EndLoc of a type loc can be invalid for broken code.
Also extend the existing test to support error code with error-ok
annotation.
Differential Revision: https://reviews.llvm.org/D96261