DRY up min/max assertion in zset methods

Change-Id: I5701569de76a8a95292bbfebae5af8ab89b16460
Reviewed-on: http://gerrit.causes.com/45134
Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>
Tested-by: Shane da Silva <shane.dasilva@brigade.com>