HashParser defaults to a hash when passed a nil value

When init-ing a `HashParser` with a nil value, the following error is thrown when calling `to_schedule`: `TypeError: can't dup NilClass`.

This PR fixes that by ensuring a hash value is initialized if a nil value is passed.