Fixes for the js-test:dialogSmallScreen task.