Fix the adding of duplicate entries and properly figure out when the queue is
empty in the 4chan module.