thetvdb: failing to compare episode titles.

Using g_ascii_strncasecmp with 0 as number of chars to compare always
return 0.

https://bugzilla.gnome.org/show_bug.cgi?id=741207
lua-factory: Fix possible crash on exit

GResource isn't a GObject, so use the correct unref function.