CRM-13554 - validate values of limit and offset