fix storage class npe
Merge pull request #637 from metamx/fix-s3-storageclass-check

fix storage class npe