Fix for null pointer exceptions related to issues #233 and #237

Added wrappers for getting map values in resultMap for MediaFile constructor