fixed NullPointerException in onDraw

Fixing NPE that happened after finish() was called on a FragmentActivity. The viewpager in the fragment appeared to be without adapter in the moment causing a crash in onDraw.