Fix for comments pagination with showcomment option (Bug #1384529)

Change-Id: If5991307ca8065c48f1309bcfc37f62df0dd12a5
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>