Armourstands with a book in hands cannot be locked

This issue affects

Armourstands holding a book

How this differs from the expected behaviour

One should be able to use /lockstand and have it lock the stand

How the issue manifests itself

Instead, the stand does not lock, and one receives the following error (in this e.g. I used the Rules book by SlowRiot:

image