Jump to correct fragment, prevent NPE

fix chat query and fragment index calculation
don't assume contact list fragment is initialized