handle some corner cases when the instance is not fully initialized
Merge branch 'dev-senigallia' of github.com:openpolis/open_municipio into dev-senigallia
fix deploy scripts