Don't call trim() on null objects [story:44571075]