Even when the action bar is locked, placing batteries in the crafting slot removes them from the action bar slot they are assigned to [(4), Plasma Cell, Action Bar Slot 8].
It's the same case for medicines when they are placed into storage [(6), Adrenaline Shot, Action Bar Slot 8].
If these items are to remain assigned to the action bar slot while it is locked, shouldn't they be highlighted in red, but unusable and the quantity display zeroed out? Similar to a combat skill that is assigned to an action bar slot but is unusable in the current situation?