fixes viewBoxRatio undefined error introduced in d05e474

The last commit to master introduces an undefined error bug when viewBoxRatio is never used.
Example here: http://jsfiddle.net/A2J3N/
This fix either creates a default object or checks if the object exists.