Refs #2480 - Fix compiler warning.

A quick google indicates this could be a bug in the version of GCC used on
RHEL6.  We use boost::optional elsewhere in Mantid, so hopefully this will
fix.