I would have thought it was a great way of letting both parties know they have a similar sense of humour, and sets the tone for future emails (i.e. they don't need to be overly formal).
Quite nice really - and I would also presume the sender knows both parties well enough to know how this email would be received.