It was a sly move from Guiseley but there's nothing to stop that happening in the game, no rule exists to say that you should give the ball back, nor should it.
To avoid misunderstanding here, I'm in no way saying I agree with them doing it in the first place, but expecting a walkthrough goal...