Fixes issue where calling `store` before setting a `messages_directory`
would cause an exception.

Dan Parks and Nathan Wallace found this bug.  Thanks!