Fixed rotation center coordinates

While setting up a rotation on an element, NaN values were returned for center coordinates. This was due to browser returning undefined and not null when testing for cx and cy values.
Patch is on line 943.