fix issue with conditonal in MediaData indexing service; add some error handling in MW interface