fix nil-reference issue in QuotedString module

quote(nil) now does not through an error