core: Fix blob x shifting on invalid value

The code was sometimes using front() on an empty list. This is
undefined behavior.

 LocalWords:  unstage src config