fix to prevent plugin running on non-HTML page output

Signed-off-by: Jason Carney <jason@dashmedia.com.au>