Fix crash on filename_free.

When key is transmitted from another pageant it has no filename. This fix avoids crash when filename is NULL;