Checking for $bt['class'] before trying to access it (Bug #1350595)

Change-Id: I13de527f16370f4c37e95421750d625fab636fe4
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>