tmdb: simplify some code
tvdb: Don't crash on startup if no TVDB is configured

Fixes #1633