Sean,
You are adding theme_id as a URL parameter when you call rp_form_put.
What we need is a way to make the variable available to the form-builder and ad_page_contract without adding it as a query variable.
I think the idea in this other thread https://openacs.org/forums/message-view?message_id=281658 is what you need.