Fixes #1614 attachment.php PHP warning when attachment file is missing

Fixes #1614