Fix IllegalArgumentException when there is now measured width or height.