work with empty datasource

Hi kejinlu,
Had troubles when PagedFlowView appears on the screen, but it's datasource is not yet fetched from server. So I just added check if datasource is empty.

BR, Dan.