Added missing default return value in "index not found" situations.