changed return value for Refs from undefined to null in cases where
no value is set