Fix condition for http trigger loading