Added check before sending data or updating attributes
in erizoController