Prevent another potential segfault on standalone systems
imap/getmetadata, Improve proving the (mailbox) argument is not a list by taking wildcards into account.