fix(fullTypeCheckMode): prevent exceptions when fullTypeCheckMode is false

If fullTypeCheckMode is false then the getDiagnostics() calls throw a debug assertion error.

Thanks