Add error checks for sendKudos method.