Added assertion to check folder isn't NULL

This PR asserts that the folder string isn't NULL before returning the operation. It's based on [this](http://stackoverflow.com/questions/27567166/mailcore-plaintextbodyrenderingoperationwithmessage-returns-nil/27567463) StackOverflow post.