Check whether focused attachment element exists before resizing