small fix to dates.coffee

In rare cases, diff may be negative; handle the case with an
early return if that happens.