Add error when message received and 'only expect forms' is true. Issue: #537