fix notification bell for legacy profiles.

these ones have no dismissed property, so need to convert
undefined to null.