fixed the fatal error, caused by an empty of games database

Just an empty table. No need for screenshot.