Fixed log errors thrown at initial onLoad when trying to connect to
MySQL database.