Check for a valid backend before rendering.

Patch by Nick Diego Yamane <nick.yamane@openbossa.org>.

Reviewed by: Tullio Lucena