..F....... [ZBXNEXT-282] improved the code to properly handle cases when no host is selected, changed triggers.php for consistency