#157 Validate against null contents with Resource.PlainText

This should solve the NPE we're getting in #157. At the very least, it should give us an indication what is passing `null` to `Resource.PlainText`.