LIMS-1529 Error while inserting an AR with container-based partitioning is required

Easy and hidden bug regarding to partitions calculation when using containers.