fix npe when createStorage() returns null
Merge pull request #2449 from owncloud/fix_npe

fix npe when createStorage() returns null