[CDB-1506] Added more protection for dump method
Merge pull request #669 from CartoDB/CDB-1506-fix-spec

[CDB-1506] Added more protection for dump method