Register default preferences before attempting to use them.
There was a memory leak when enabling and disabling Spectacle's login item.