only return None from timedelta_to_seconds when input is None
Merge branch 'master' of https://github.com/hozn/stravalib