Notice on not existsing $modx->resource