getSize was returning null in some cases

Don't know why, but sometimes getSize() returns null... changing to 'size' fixed it for me
Maybe it was caused by surface with size set to [undefined, true]