fix bug in FormatNegotiator::getFormat() always returning null