Check if last layer before removing 'no-scroll' for 'modal'