One of Blackpool's oldest pubs was in danger of collapse after its historic frontage was found to be crumbling away.