trace: Fix hasEvents()
trace: Fix hasEvents()

Previous implementation would only return valid values if
the passed argument was a string (and not a list).

ARM-software/lisa,credp/lisa,credp/lisa,credp/lisa,ARM-software/lisa,ARM-software/lisa,credp/lisa,ARM-software/lisa