Fix server status not correctly fetched

This error has been introduced by ebe2166 because of some incorrect
refactoring.