LPS-44269 Fix import of priorities
LPS-44269 Fix possible NPE
LPS-44269 Make it work for child pages also