setProperty appears to return the existing value as per its java counterpart, not "" as the documentation states, and hence cannot be used just anywhere.
Thanks for the report. I've added an optional 3rd parameter so that one can return the original value if required, but the default is now to return "" as documented.
thanks
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1621