ACAD_PROXY_ENTITY: move variable declaration to begin of function.

Signed-off-by: Bert Timmerman <bert.timmerman@xs4all.nl>