Rearrange code:
Only fetch value if it is needed; check cheapest condition first

git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1570838 13f79535-47bb-0310-9956-ffa450edef68