CLC-4229-1 - /act_as endpoint should only allow uid's that are valid

https://jira.ets.berkeley.edu/jira/browse/CLC-4229
Ruby returns the last expression in a function so before I added my code, the function returned `Integer(act_as_uid, 10)` in the begin/rescue block, so that acted as a truthy value.