block: Fix NULL dereference on empty drive error