Fix to stop javascript error being thrown in the console.

Small change to stop an error being throwing the 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>