Fix a class cast exception for Jersey Apache4 parameters that was introduced with Jersey 1.18