Fixed error when document.stylesheets is null;
Fixed issue with $wrapper may not exist when position is called;
Fixed issue with position() not called by default if the position option isn't set