Fixed bug of formatted_xxx and hex_xxx

Changed formatted_xxx and hex_xxx to return nil when source uuid is nil.