Check that the browser exists before trying to resize it.