Testing Hardy's nonlocality proof with genuine energy-time entanglement