Fixes #3716: `DynamicModel::validateData()` does not call `validate()` if the `$rules` parameter is empty