ENTMQ-611 fix related, fix NPE if no profile is set at all.