ensure we do not query layers with no active styles