Fix broken long message documentation compact mode.

For long message documentation, compact mode was not working.
Irrespective of the length, always shown in expanded mode.
Clicking on 'view less' did nothing.

Change-Id: Ib5091323afbd2b86a3a6a60cbc37d18cc989e938