Fix #1205: Several method existence checks don't deal with visibility