Override argument passed by URL
Definitely you will have to change your preprocess hook to replace arg(3) that is hard coding it in an aspect and definitely not make it suitable for manual call.

Can you please investigate $variables for the value being passed as argument to theme()? I hope you will get it there.