Fixes the problem seen below:

Exception ValueError with message "No JSON object could be decoded" is
being raised when running the ban_test_user_channel test.

Same problem fixed for other tests by last 2 commits.