An anxious autistic boy undergoing an MRI scan was put at ease when his loyal best friend stayed by his side throughout the procedure.