The black hole X-ray transient Swift J1357.2–0933 as seen with Swift and NuSTAR during its 2017 outburst