Fixed an issue where an exception is thrown when validation is skipped