Wrapping foreach in a \Traversable check to avoid invalid argument passed error.
Changing anidb to anidb_titles for AniDB controller.