Check for chat room window on muc events, log error when doesn't exist

issue #341
Merge branch 'master' into plugins