Bug 1173180 - Check for frontend directory existence before calling rm_r

Same here. I think it might be worth logging if we run into any other issues later.