Fixed bug with mergeGuestCart() call on non-object