BZ-990595: fix for gwt related bug (incosistent behavior on devmode and js compiled)