Fix broken media tests for PUT and PATCH.

Also fixed wrong check introduced in ad4afe90924241e907e94824b13294bef2c0b217.
Merge branch 'fix-media-tests' of github.com:hellerstanislav/eve into hellerstanislav-fix-media-tests
Fix broken media updates #399
Merge branch 'hellerstanislav-fix-media-tests' into develop