Do not try to remove anything when the filename is null or empty