Update FormatNegotiator.php

Fixed undefined variable issue.