Merge pull request #9352 from fcampo/RemainingPinIntents-ussd

[dialer] Bug 860660 - PIN&PUK: Show counter of trials remain(cherry picked from commit 887cae7e556fc19722011f0674fdd4d4bfeacc3e)
Bug 861080 - [sms]can't select last sms. r=borjasalguero
(cherry picked from commit f5de114feb0a3690dcbe5e226345f4d242a14f97)
Merge pull request #9589 from lodr/bug-828298-avoid-negative-offsets

Bug 828298 - Fixig a problem in the algorithm closing a tag in mindgap.js
Cause r+(cherry picked from commit d6ab69091492a2743b50eae24f8965e5a07c9d1c)