'The Idea of You' director Michael Showalter explains why he changed the book's controversial ending