Fix stdClass->date access when not set
Fix for inline attachment detection