Added protection around facade creation, fix #1780