- Added checking of title not undefined.