Fixed #20427 -- Moved a variable initialization in storage.py

This is fixing commit 4e70ad11d2. Thanks mattias at elements.nl
for the report and Baptiste Mispelon for identifying the faulty
commit.