Fix length calculation error on user data message
Fix SMS display issue by merging patch(partially) from Bug 811538