Fix that Getting an non-existing record was crashed