Support audit-argument-checks package

When using the audit-argument-checks package errors are throw because the publish function isn't checking its parameters. Here's a fix.