fix empty variable for mysql sla procedure

fixes #4152
Merge branch 'fix/avail-query-4152' into next