[core] Rename local variable for consistency
[layouts] Only move layout to valid positions in TWBaseLayoutManager