Handle null media response

Wasn't able to really find an appropriate test file for the code so haven't added a test. Fully understand if you reply saying that a test is required.

Fixes #74