Fix to stop javascript error being thrown in the console.

Small change to stop an error being thrown in the browser console when the default message icon is selected from a reply via an ajax call.

Signed-off-by: ziycon <ziycon.eire@gmail.com>