am f6f9aeb4: Add a missing bounds check.

* commit 'f6f9aeb40bc665adb4ccf2ab42ebb86b4f3338c8':
  Add a missing bounds check.