Period.parse_spec should handle nil from and non-nil to.