Resolved bugs that made erizo controller crash in some scenarios