ValueDecl::getInterfaceType() asserts if the decl has no interface type; to check if the declaration has been type checked yet, use hasInterfaceType(). Fixes <https://bugs.swift.org/browse/SR-4743>.