Utility method for getting a component's attribute value by evaluating a
value expression first