Protect OptimizedBeanPropertyWriter against IllegalAccessException and SecurityException