MediaEngine: Get rid of implicit boolean conversions to int