RF-13697: fix maxFileQuantity check