Fixed -run and -runUntilDate methods for NSRunLoop when dispatch main queue is involved.