Prevent errors when no options present

There is if-elsif tree for params assignment so params can be nil in some cases and calling `merge!` on them will cause exception. So this pull request will prevent those situations