Clear activities dialog on user switch
Avoid NPE
Merge pull request #3151 from dominikl/trac_12502

Clear activities dialog on user switch