Fixed storing and loading null-values in Redis

See #1311