Fixes deprecation warning when using find_or_initialize_by