Extending four-dimensional Ricci flows with bounded scalar curvature