Fixed a fatal error, in case the agreements parent block return an empty array (= no agreements set up)