Fix for issue #12.

Check to see if scope.dimensions is undefined before using it.