PdoStorage: Fix for userid cannot  be null