Mitigate null reference warning if CurrentTab is not set
Mitigate index out of range warning if path is not specified