rails_port: Fix warnings in 006_remove_segments_helper.