Bug 1061215 - [Messages][Refactoring] Improve handling of remaining chars counter. r=schung

Checked with Jenny, and just like @julienw said. Sorry about missing the sms 0 bug :( It should be check the current segment instead(the naming is misleading too), and it's defiantly better that checking the message type directly, thanks @azasypkin !