It did and that is expected, if you follow the logic of get_post_status, for attachments with the status of 'inherit' it will return 'publish'. This is why I changed line 214 to use the variable instead of looking at the post object.