I also saw this as a lame jokey comment. I often say to male colleagues who wait for me to get out of a lift first or the like silly things like 'what a gentleman you are'. If I had received the comment you had, I probably would have laughed and said thank you. But your comment was ok too.