isExpanded() would always retun true if called before layout.

Fixed version of https://github.com/umano/AndroidSlidingUpPanel/pull/27