fix empty areaToModify variable if block is added to a global area
Merge pull request #1435 from akodde/fix_canaddblock

fix empty areaToModify variable if block is added to a global area