Better handling of error if "serverApi" property is not set