Six-time ATP Rome Masters champion Rafael Nadal was given a fright by Ernests Gulbis before coming through an epic three set encounter, 1-6 7-5 6-4.