try except to catch browser attribute error

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>