extra trap code for boost::variant problem

Signed-off-by: Dan Mick <dan.mick@inktank.com>