core: Fixing wrong instanceof usage at SrvRecord

The following fix fixes wrong usage of instanceof

Change-Id: Ia9051d60924c9330cf7d18a29a82d61b597968fa
Signed-off-by: Yair Zaslavsky <yzaslavs@redhat.com>