Issue #2029191 by Lazarus-Long: Fixed NULL return from ->getCurrentStore() causes fatal error in drush.