prevent crash if title or message is too long for notification