fix UnboundLocalError: local variable 'restraint_html' referenced before assignment

Signed-off-by: Gowrishankar Rajaiyan <gsr@redhat.com>