This commit fixes an issue that I was having with Masonry. Essentially the getStyleSize function checks whether the value contains a '%' before it checks whether it's in fact a number. Masonry was passing a null value to it on iOS causing an error when indexOf was called. I decided the most elegant solution would be to swap the order in which the statements are evaluated. Encountering NaN will shortcircuit the statement and avoid invoking an undefined method.