Fix for rect elements with no x/y attribute