Fix NPE with Jersey