use maximum instead of max to filter for nil

Resolves a bug where the cart validation returns a 500 internal server error if the category max checkout length is nil (resolves #848)

This does not need to ported to master