Fix for infinite loop in MOAITimer ping-pong mode

When the time is equal to the end time, the old version will go into an
infinite loop.

See issue #715