Hearts are ordered to re-take their second penalty after Josh Ginnelly's rebound goal is ruled out by VAR for encroachment.