Jonathan Rea was lucky to avoid being sent off his bike following a collision with Garrett Gerloff in Race 2 of the Superbike world championship.