guard against shifting by None days which causes failure
Merge pull request #1663 from dimagi/mvp-hotfix

guard against shifting by None days which causes failure