Hearts survived loud appeals for a penalty when Marius Zaliukas appeared to bundle Hanlon to the ground as they waited for a Riordan free-kick to be delivered into the box.
He first waved away Villa appeals when Seyi Olofinjana appeared to bundle Agbonlahor to the ground, but seconds later was pointing to the spot at the other end, after Delap was clipped by Laursen as he turned tightly.