Fix support for "null" videodriver e.g. for bots

sorry some automatic whitespace fixes in there, if this is an issue just comment and I'm gonna fix it.