Fix bug causing crash on no local redis