Leeds were cost a goal in the Yorkshire derby when referee Anthony Taylor allowed them to take a free-kick during a substitution.