crosswalk-10: Backport my own Coverity fixes.

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