Fixes access to scope variables when not using "ratio" attribute.

This fix access to undefined vars when using "destination-height" + "destination-width" attributes instead of "ratio" + "destination-width" attributes.