Fix for devices that report incorrect supported types.

Certain devices can report a codec in the supported list but don't really support it.  getCapabilitiesForType will return IllegalArgument and we shouldn't add it to the list.