CDB-4402 Checking presence of related_tables to avoid error at protected map views
Merge branch 'CDB-3625' of https://github.com/CartoDB/cartodb into CDB-3625