Fixed bug problem

Had a "minor" problem where the code couldn't even tell if there was an
attachment…so like I said, minor. But like I said, fixed it now.