Fixed issue when  mixin's block is used as part of a property value. Closes #1712