Bug - crashing on favorites empty - Solved

Solved the problem where on emptying the favorites section resulted in
a crash of the app + lastest working code