Fix for Articles

* Added check for `nil` input in `markdown_preview` and `from_markdown`
* Added rspec tests for `nil` input