Fin Smith's last-second penalty snatched a breathless 41-38 victory for Prem Rugby leaders Northampton Saints against second-placed Bath at Franklin's Gardens.