Prevent server crash if author is not set

The author variable should be set in normal cases, but during development on a plugin I have produced this error everytime. If you reproduce this behaviour on client side you can produce a server crash.