Avoid errors if window.vaadin does not exist

Change-Id: I5d57ca13030c75831a47bc6f6e1a73b845f7ea73