Revise browser notification close logic

Do not use hasOwnProperty; property will exist on message but be
undefined.