Corrected getter/setter whitelisting logic.