your service definition passes ``null`` as context when JMSSerializerBundle is not available, which will break