Handle nil options gracefully when calling #as_json.
Bumping version to 1.5.1.