Fix exception when passing a nil value for a hash param required in a hash

Previously the error raised was:

```
undefined method `has_key?' for nil:NilClass
```
https://github.com/Pajk/apipie-rails/blob/master/lib/apipie/validator.rb#L237