Well, what you're doing wrong is using as the reference group a group with zero events. Instead of hazard ratios, think in simpler terms (in my opinion) of incident rate ratios (IRRs), where the incident rate (IR) is IR=number of cases / total person-time.
IRRquartile 4 vs. quartile 1=IRquartile 4IRquartile 1
What happens if IRquartile 1=0?
You can change your categorisation (use tertiles or some other meaningful categorisation) or, even better, if you have a continuous predictor you can treat it as such and examine potential nonlinear relationships using polynomial terms, fractional polynomials or restricted cubic splines, for example.