Fix invokeWhilePaused when called with arguments.
Merge pull request #889 from erd/fix-activity-controller-test

Fix invokeWhilePaused when called with arguments.