Fixed context mapping

To get rid of the empty stack trace exceptions by  fixing a small mistake in the RunOptions to XML mapper.