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

Thanks for checking, but I think it's always better to check and not rely on not exposed and not documented browser internals :)