Fixed gettypename bug when namespace was null