[KARAF-3075]AdminService should avoid writing file in case just read instance status
(cherry picked from commit 32f47f4c22c2a520e9ea8cd97b70c1a776c5da6c)