Fixed SafeObject to return null when trying to use null references.