Invalid error message for minProperties

Instead of number, `undefined` value is returned because of copy&paste bug :)