Weak continuity and weak lower semicontinuity for some compensation operators