Fix js error while clicking on 'Load all messages' button

Change-Id: I803c83de4bfaae4b64eac9da88d9a2dea7ecaf94