Analysis waiting page hotfix

Explicit int conversion of ids
Updates for Job & Study object changes
Ah, sorry I tend to ignore things not highlighted in green or red :)  Thanks for creating the issue