Fixed a crash on a serach result that would happen when no current item was given by Qt