Jump to correct fragment, prevent NPE

fix chat query and fragment index calculation
don't assume contact list fragment is initialized
Merge pull request #275 from devrandom/chatfrag

Jump to correct fragment, prevent NPE