BUG: masking empty DataFrame
closes #11859 

A `ValueError` was raised when trying to mask an empty DataFrame. In addition to solve the bug I've also added a simple new unit test in `test_frame.py`. I didn't add a line in `whatsnew` because this was already done in #10126 

needs a whatsnew note - this is in a different release 
 thank you sir!
