Adapter reference null check in onTouchEvent()

"mAdapter" can be null when touching the view, if the adapter hasn't
been set or it's been reset.

I've also moved an access to a local variable after a null check in the
(unused) getFirstChildAtColumn(int) method.