fixed issues where the format supplied to the Media types getDefaultFormat function should be null