crosswalk-9: Backport my own Coverity fixes.

Apparently I forgot to backport #2613, #2611 and #2612 from master...
Shame on me.

Related to: XWALK-2928