Fix type annotation in CommonsMediaType expert

That's always a string or null.