fix npe when createStorage() returns null

this at least returns null instead of dying with an error in the log. Maybe we should start using exceptions for this? @icewind1991 @DeepDiver1975 @bartv2 @schiesbn comments?