Makes sure NotificationRanges are not out of bounds