Clean up handling of getting window scroll monitor or container scroll monitor