Added conditional to verify the $user object is set in prepare_author method.

Intended to resolve issue #51.