Triggering success on optional but have other successful validators

Addresses issue #851. The comment in the code itself says "when there
are no other rules" but does nothing to enforce that comment.

This uses a jquery map function to count object keys, as Object.keys
does not work in < IE9. Taken from http://stackoverflow.com/questions/5533192/how-to-get-object-length-in-jquery