VID-1753 Make sure the getter is callable

RFCR @garthwebb 
I still think it should be handled in a cleaner way - maybe have interface which provides method getMetadataDuration and check if given object implements that interface.