[bug 933786] Fix test_null_device_returns_400

This fixes the test so that it's testing the right thing and passes
correctly.

The problem was that it was sending the data in the wrong format before. This sends it correctly as json and the None gets turned into a null and thus triggers the problem in question.

Quick r?