fixing bug in jax-rs MessageBodyWriter/Reader, to work when genericType is null