Issue #617: Reset index back to zero if indexOfSlash is less than zero.