check if browserURL is not null before trying to get

Signed-off-by: Guillaume Boucherie <gboucherie@mediametrie.fr>
Merge pull request #5 from clettebou/master

a fix for the issue I just create