get the last X history items for detecting the last created tag. (this failed in case there was an delete action before)