Added protection against return a empty pItem on previous commit