check if the font atlas is initialized

The issue being that `DrawBuffer::DrawText` assumes that `DrawBuffer::atlas->fonts` has at least as many members as its first parameter. But with the Qt build the atlas fonts are no longer initialized.