Fix a bug where user can delete out of bounds

The problem lies with a missing else condition in InputParser
convertFromIndexToId. If it is out of bounds, we should remove the item
from the list of Integers to be deleted.