Prevent error when the daterange html element isn't there

See: https://github.com/GigaOM/legacy-pro/issues/3756