Mediatype.cpp: Fix cast from HRESULT to BOOL.

Found with /analyze, warning C6214, C6216.
Fix using potentially unitialized variable.