Fix script saving/loading.

Check if the path is null.