The brain was magically consumed and is gone, so the field does nothing for that. The devourer magically teleported into the empty space, but that magic is also already gone, so the field would do nothing for that. About the only thing that would happen is that the devourer couldn't use any magical abilities while in the cell, but it wouldn't be forced out.