Avoid crash when load map without objects