This is an open source project so you are free to modify the source to fit your needs. But equally it means that you need to put the effort in yourself.
Obviously, the NPE should not happen, but in other ways you are trying to use the library in a way that was not intended (without a map file), so it is difficult to predict what will happen if you just catch this exception and ignore it. My hunch is that you will simply run into the next NPE a bit further down the line.
My understanding is that you want to use only the overlay facilities without an underlying map. I would suggest that you use an empty mapfile rather than an passing a null pointer to the setMapFile call.
HTH
Ludwig