Wrap emote set getter with try...catch

Also moved the emote set getter call outside of the loop to improve performance. Ref #55