Fix ReferenceError for unknown types.