[BrowserTest] Handle a off-bounds image condition in language screenshots

Paired-With: Zeljko Filipin.

Change-Id: I73cba5b5214798958aba6ed2a87361e2bd1b76a7