displayinfo bug with books

This issue affects

The /displayinfo message used on a larger book in at item frame.

How this differs from the expected behaviour

Display the name of the book similar to books under 10 pages.

How the issue manifests itself

Aim at an item frame with a written book with >~15 pages and use /displayinfo. The display info will not be presented in chat, but a large error message will.

the error message: image