Update AbstractMedia.php

response to https://github.com/doctrine/phpcr-odm/commit/ea6a6f4203edfa15c1228e90802ecc42a22537e8