On small divisor functions and a construction of polar harmonic Maass forms