Fix crash when adding a favorite for the first time.
Merge pull request #119 from T-Svensson/gotham

Fix crash when adding a favorite for the first time.