Fixed NPE when expanding panel right after inflation

Issue: https://github.com/umano/AndroidSlidingUpPanel/issues/201
also code was suddenly a bit reformatted by intellij IDEA