Fixes an issue with "Remove unavailable files" that caused the TV show library update to crash when enabled. Essentially, it closed the cursor within the while loop, meaning that it'd try to re-open an already closed database connection. Refs https://github.com/MizzleDK/Mizuu/issues/444