box: Forgot to check NULL pointer at the previous commit.