CINE: Add a safeguard to avoid incrementing a null pointer