Fix issue where unchecking a stock location could cause it to reuest /admin/stock_items/{id}

Fixes #2896