NY-5799: Fix null pointer exception due to profile not found
Created by: dragomir-todorov
Logged an error if such a situation happens.
and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here
Created by: dragomir-todorov
Logged an error if such a situation happens.