prevent crash in getChildren
closes #2533
only emit event:user_leave to topic rooms instead of all online users
removed unnecessary require