fix NPE when request lacks “Accept” header