Bugfix for depths with no visuals. This is not an error condition, but the code did not correctly handle it; it took malloc(0) returning nil as an out-of-memory indication.