[kmf-media-api] Fixed MediaPipelineFactory destroy method not being called

Change-Id: Ie873ee3456cfdd10e1fc08592a94031dd8f6c5d5