Attempt at fixing #5

Added an additional null check for the rhs when the ltype is object.