Handle functions that can return null.