Better accessibility check for protected constructors #SCL-5987 Fixed