Provide better error message for extensions

For example when the form/html classes are missing.