Fixed JERSEY-1747.

Change-Id: I654bed7b658cf6bc834e6a17c7d95c805aaf5696