Don't fail if no site configured and/or debug enabled

This patch allows the usage of piwik_tracking_code when no site configured and/or DEBUG = True