sidebar-thumbnails: connect to job finished signal before scheduling the job

taken from https://git.gnome.org/browse/evince/commit/?id=6b0630f8c2abd992d65075152dce5fefd9b51f45