Changed getTitle to log an error if no titles were found.

It will not log an error if the resource is binary or is ignored.