Removed a call to the deprecated VaadinSession.getBrowser() method
Fixed a for loop that was causing type safety warnings