Make SQLContainer.removeAllItems() work properly with paging (#12882)

With this patch removeAllItems() works properly when
items need to be fetched from database.

Change-Id: Ic008ae7c67610cbdde7d71fa071494508678ac8f