Using Jose's formula:

=IF(B6="","",IFERROR(SMALL(INDIRECT("'" & G2 &"'!$M$6:$M$13"),B6)," "))