storagecommands: fix sensorTree never updated

Swap the sequence of sensorTree.empty() and getSensorSubtree() in if
statement.
This will fix the issue of sensorTree never get updated.

Change-Id: I225c3641145643ef481aec977ebd4b8b277b2dc8
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
1 file changed