core: remove redundant code

getMethod will never return null.
It will either return the method, or will throw an exception.
So, in this case, both the if, and the operation inside it, are
redundant it will always be false so inner code will never be reached.

Change-Id: I878243d9a3e205990d2a029c7443cd6d62feb0d3
Signed-off-by: Oved Ourfali <oourfali@redhat.com>