Check that handled got set rather than the value of handled. Closes troopjs/troopjs-core#96.