Fixed buffer hash crashing everything with empty buffers.