Lewis Hamilton was reprimanded after avoiding pitting at the last minute, cutting across the grass to get back on track.