Fixed crashing bug when deviceStore is disabled