Revert "Remove the if check for now"

This reverts commit e24329c74ad93e446f2ef053c8b4ec2a8c372eee.
Merge branch 'master' of github.com:openspending/openspending