Added symbol extension method: GetReturnType & added some null checks
for the symbol extension methods.