Update blocks.js

added a further condition that handle the case when a global var used as an option list has been previously removed and then it is added back