Enhance defences on StorageHandler

Check if parameters are null for all methods.