Fix undefined variable warning in blogs (Bug #1326597)

Change-Id: Ia0e641b360f6d4e46d764cc97d0c3ccca6dce915
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
Merge "Fix undefined variable warning in blogs (Bug #1326597)"