fixed possible crasher with bad directives on report endpoint