Make AbstractSession.getCachedInstance meet contract of method.

* Method should not return false but null.
* Various callers using method check whether return value != null and currently get
 false positives (since Boolean.FALSE != null).