[PATCH v3 1/2] bfs: prevent null pointer dereference in bfs_move_block()