Fixed Stormregistry corruption on PUT and GET calls of /agents