MediaCodec: check exception for getCapabilitiesForType