Another crash fix

Prevents the program from crashing due to a blank folder