fix isLayoutEditor in WebUtilsDervice