Fixed invoker to only run @AfterMethod with lastTimeOnly=true on the last run

This fixes the bug which is described in https://github.com/cbeust/testng/issues/425
Also, I added a test to check for this issue.