fixed getTrialEnvironmentDetails to avoid exiting the loop when there
are still records in the environment details, this is to set the
location info properly

Signed-off-by: daniel@efficio.us.com <daniel@efficio.us.com>