Handle possible runtime validation exception when looking for a method
using reflection.