Fix validate handler for "title" in publication form.

#6076 

Addressing https://github.com/openscholar/openscholar/issues/6076#issuecomment-43214321, the title now is saved and trailing spaces are removed.