Added preliminary support for char16 to avoid crashes because of null parameter types.