Internal error when creating Custom Report

Inter Error on Custom report view:

if nothing defined.

Just a minor issue but should be fixed, @lubos.