Mitigate index out of range warning if path is not specified