fix undefined indexes when path already exists and an error is thrown

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
fix awstats/webalizer alias issue, (hopefully) fixes #1067

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>