Custom transformations should throw on main thread.