Fixed "Invalid date" appearing in range selector input when opening date was 0. Related to #1878.