Check browser not null before trying to access its properties ;)