Fix handling of absent public_key.

Some API calls (notably posts.create with certain args like
ip_address) will not work as expected if both public_key and
secret_key are passed, so don't complain if only secret key
is provided.