CDB-4248 Handle errors

Already fixed and done in live. We found misc. errors so need to try-catch 
https://cartodb.atlassian.net/browse/CDB-4248