fix usage of deprecated function

Change-Id: Iee7ff9b0409a7d2b6b43be4f071eabb7d46fe950
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
fix environment of JS Process

The environment of the JS class Process is empty if the build environment
has not been initialized yet. This can happen if one uses Process on the
RHS of a binding like Group.name.

Task-number: QBS-547
Change-Id: I1341c8dbbc677adcc3e3f5842a95d6f8aeebf09b
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>