Fixed a bug with calling beginRefresh and then endRefresh preventing the first manual pull to refresh afterwards.