Fixed null in console log with no DB error.