Fixing Validator::_checkFormat using any option.

The method (using the any option) would before return false and break
out the loop if any of the given formats didn't match.

This behavior has been changed, so that if any format matches true
is returned. Only in the case none matched false is returned.

Closes #888.

Adding test.
Merge pull request #1051 from davidpersson/fix-validator-any

Validator Any Fix