Fix for the last fix: assert if id_distrito is not None