Possible bug fix for the application crash on onLeScan