Backed out changeset 9f1c312a85ee (bug 918386) for crashes.
Bug 1029718. Skip transform calculation if region to transform is empty for layer event regions. r=mstange

This means that we keep empty regions empty instead of rounding out causing empty regions to become non-empty. It can be significant for perf. Bug 1016525 fixed this. Bug 977831 regressed this.