Fix JSON wrapping of error message

Error messages were displaying in pure JSON form,
rather than displaying the message in plaintext.

Fixes https://tickets.puppetlabs.com/browse/RAZOR-301