Remove unused variable in getProperty

refs #2589