IsValidActionMethod fails to check static methods.
  Fix #638