Fixed infinite loop when calling next tick within next tick

Solves #342

@michaelobriena @DnMllr @wgester @AdamCmiel

Showed my test case and solution to Dan already.