NuStar observations of the compton-thick active galactic nucleus and ultraluminous X-Ray source candidate in NGC 5643