Fix bug in usetrash default value check

Change-Id: Ia776e4d1847697ea0ee614cf882a1ee81f1f0db3