Fix ruby 2.1 compat issue

WEB-16456