Harlequins boss Conor O'Shea praised the spirit of his young side after they produced a resolute defensive display in the 21-12 victory over Bath.