NullPointerException in SQLiteSession

I have found this bug with the FindBugs tool

Change-Id: Ia167882f98c3cdb24332f420e0505e1af929b770
Signed-off-by: László Dávid <laszlo.david@gmail.com>